package com.lemon.exam.service;

import com.lemon.exam.common.crud.BaseService;
import com.lemon.exam.entity.dto.RoleMenuResourceDTO;
import com.lemon.exam.entity.po.RoleMenuResourcePO;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * 菜单-接口中间表 服务接口
 *
 * @author Lemon
 * @since 2025/05/08 12:31:56
 */
public interface IRoleMenuResourceService extends BaseService<RoleMenuResourcePO, Long> {
    Mono<Map<Long, List<String>>> findByRoleId(Long roleId);

    Mono<Boolean> insert(List<RoleMenuResourceDTO> roleMenuResourceList);

    Mono<Boolean> delete(List<RoleMenuResourceDTO> roleMenuResourceList);
}